/*
 * @Author: wuhao930406 1148547900@qq.com
 * @Date: 2023-08-10 10:12:54
 * @LastEditors: wuhao930406 1148547900@qq.com
 * @LastEditTime: 2023-08-10 10:21:23
 * @FilePath: /e-bike-pro/config/proxy.js
 * @Description:
 *
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
 */
/**
 * 在生产环境 代理是无法生效的，所以这里没有生产环境的配置
 * -------------------------------
 * The agent cannot take effect in the production environment
 * so there is no configuration of the production environment
 * For details, please see
 * https://pro.ant.design/docs/deploy
 */
export default {
  dev: {
    '/vehicle-api/': {
      target: 'http://101.132.181.152/vehicle-api',
      changeOrigin: true,
      pathRewrite: {
        '^/vehicle-api': '',
      },
    },
    '/vehicle-node/': {
      target: 'http://101.132.181.152/vehicle-node',
      changeOrigin: true,
      pathRewrite: {
        '^/vehicle-node': '',
      },
    },
    '/elec/': {
      target: 'http://testproperty.hengyuanyunti.com',
      changeOrigin: true,
      pathRewrite: {
        '^/elec': '',
      },
    },
    '/oss/': {
      target: 'http://101.132.181.152/oss',
      changeOrigin: true,
      pathRewrite: {
        '^/oss': '',
      },
    },
    '/ucyber/': {
      target: 'https://www.ucyber.cn',
      changeOrigin: true,
      pathRewrite: {
        '^/ucyber': '',
      },
    },
  },
  test: {
    '/vehicle-api/': {
      target: 'http://101.132.181.152/vehicle-api',
      changeOrigin: true,
      pathRewrite: {
        '^/vehicle-api': '',
      },
    },
  },
  pre: {
    '/vehicle-api/': {
      target: 'http://101.132.181.152/vehicle-api',
      changeOrigin: true,
      pathRewrite: {
        '^/vehicle-api': '',
      },
    },
  },
};
